﻿using MediatR;
using RBAC.Api.Demain.ContentManagement;
using RBAC.Api.Demain.Entities;
using RBAC.Api.Erroc;
using System.ComponentModel.DataAnnotations;

namespace RBAC.Api.Read.Command.ContentManagement
{
    /// <summary>
    /// 显示轮播图表单
    /// </summary>
    public class ShowCarouselChartCommand: IRequest<APIResult<APIPagin<CarouselChartModel>>>
    {
        /// <summary>
        /// 标题
        /// </summary>
        [StringLength(100)]
        public string? Title { get; set; }
        /// <summary>
        /// 生效时间
        /// </summary>
        [Required]
        public DateTime? StartTime { get; set; }

        /// <summary>
        /// 失效时间
        /// </summary>
        [Required]
        public DateTime? EndTime { get; set; }
        /// <summary>
        /// 页数
        /// </summary>
        public int PageIndex { get; set; } = 1;
        /// <summary>
        /// 条数
        /// </summary>
        public int PageSize { get; set; } = 10;
    }
}
